<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="header.html" />
  <xi:include href="footer.html" />
  <xi:include href="master.html" />

<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title>#${channel.name} - ${ptype}</title>
  <script src="/javascript/MochiKit.js" type="text/javascript" charset="utf-8"></script>
  
    <script type="text/javascript" src="/javascript/prototype.lite.js"></script>
    <script type="text/javascript" src="/javascript/moo.fx.js"></script>
    <script src="/javascript/archive.js" type="text/javascript" charset="utf-8"></script>
    
    
</head>

<body>
    <div id="arcnav">
        <div id="navslider" class="hidden">
            <div class="bgblend">
            <div id="searchnav">
                <form action="search" method="get">
                    <input type="text" name="q" value="Keyword Search Disabled" id="q" disabled="disabled" size="25" />
                    <input type="submit" value="Search" disabled="disabled" />
                </form>
            </div>
            
            <div id="datenav">
                <select id="daynav"></select>
                <select id="monthnav"></select>
                <select id="yearnav"></select>
                <a href="javascript:archiveJump();"><img src="/images/go.png" alt="Go to archive"/></a>
            </div>
            
            </div>
        </div>
        <div id="arctab" class="navbottom" align="center"><a href="#" id="arctablink" onclick="effects['navbarSlide'].toggle()"><img src="/images/arctab.png" alt="Browse Archive" /></a></div>
    </div>

<div id="content">
    
    <input id="arc_date" type="hidden" value="${arc_date}"/>
    <input id="first_date" type="hidden" value="${first_date}"/>
    <input id="last_date" type="hidden" value="${last_date}"/>
    <input id="channelname" type="hidden" value="${channel.name}"/>
    <input id="servicename" type="hidden" value="${channel.service.name.lower()}"/>
    <h1>#${channel.name} on ${service.name}</h1>

    <h4 py:content="ptype">Page type goes here</h4>
    
    <div id="messages">
        <table py:if="len(messages) > 0">
            <span py:strip="True" py:for='i,m in enumerate(messages)'>
            <tr py:if="m.day_changed()" class="daychange">
                <td colspan="3">${m.time.strftime("%d %B %Y")}</td>
            </tr>
            <tr class="${i%2 and 'odd' or 'even'}">
                <td class="time" py:content="m.time.strftime('%H:%M')">00:00</td>
                <td py:if="m.type == 'action'" class="action" colspan="2">${m.nick} 
                    ${m.line}</td>
                <td py:if="m.type in ['join','part','nickchange']" class="${m.type}" colspan="2">${m.nick} ${m.line}</td>
                <td py:if="m.type == 'quit'" class="quit" colspan="2">${m.nick} quit (${m.line})</td>
                <span py:strip="True" py:if="m.type == 'message'">
                <td class="nick" py:content="'%s:' % m.nick">Nick</td>
                <td class="line" py:content="HTML(m.line)">The line goes here</td>
                </span>
            </tr>
            </span>
        </table>
        
        <p py:if="not len(messages) > 0">No messages found.</p>
    </div>
    
</div>
</body>
</html>
